/*
============================================================================
 Name        : BlockChangeAward.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : CBlockChangeAward declaration
============================================================================
*/

#ifndef BLOCKCHANGEAWARD_H
#define BLOCKCHANGEAWARD_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "Block.h"
// CLASS DECLARATION

/**
*  CBlockChangeAward
* 
*/
class CBlockChangeAward : public CBlock
{
public:
	~CBlockChangeAward();

	static CBlockChangeAward* NewL(CBaseBlock* bsBack,const TInt& aTotalPoints);

	static CBlockChangeAward* NewLC(CBaseBlock* bsBack,const TInt& aTotalPoint);
	
public:
	//from CBlock
	void OnDraw(CFbsBitGc& g) const;

	void OnKeyEvent(const TInt& keyCode);

	TInt GetDataLength();

	TInt16 GetDataType();

	TBool ReadData(const TDesC8& aData);

	void WriteData(TDes8& aBuf);

	void SetNoticeText();
	
	void SizeChanged();
	
	void OnMouseUp(const TPoint& aPt);
	
private:
	CBlockChangeAward(CBaseBlock* bsBack,const TInt& aTotalPoint);

	void ConstructL();
	
protected:
	void BeforeDraw(CFbsBitGc& g) const;
	
private:
	TInt m_nTotalPoints;
	TInt m_nMonths;
	CDesCArray* m_vText;
	CSelectBox* m_selBox;
};

#endif // BLOCKCHANGEAWARD_H
